# 打开windows快捷方式

import time

from xqol_login.open_game_utils import do_open_game_window, do_login_game

desktop_path = "C:\\Users\\hujun\\Desktop\\xqol_2560x1440_100\\xqolhm"
# 等待打开的账号
account_list = [
    { "window_title": "xqApp xqolhm1", "link_name": "xqolhm1 春媱", "x": 310*0 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm2", "link_name": "xqolhm2 夏露", "x": 310*1 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm4", "link_name": "xqolhm4 冬桃", "x": 310*2 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm5", "link_name": "xqolhm5 幻听", "x": 310*3 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm6", "link_name": "xqolhm6 听说", "x": 310*4 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm7", "link_name": "xqolhm7 说谎", "x": 310*5 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm8", "link_name": "xqolhm8 谎语", "x": 310*6 + 7, "y": 0 },

    { "window_title": "xqApp xqolhm9",  "link_name": "xqolhm9 语心", "x": 310*0 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm10", "link_name": "xqolhm10 心墙", "x": 310*1 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm11", "link_name": "xqolhm11 热枕", "x": 310*2 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm12", "link_name": "xqolhm12 热忱", "x": 310*3 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm13", "link_name": "xqolhm13 热感", "x": 310*4 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm14", "link_name": "xqolhm14 热衷", "x": 310*5 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm15", "link_name": "xqolhm15 热辣", "x": 310*6 + 7, "y": 473 },
    { "window_title": "xqApp xqolhm16", "link_name": "xqolhm16 热诚", "x": 310*7 + 7, "y": 473 },


]
# 打开游戏
my_game_windows = do_open_game_window(desktop_path, account_list)
print(my_game_windows)
# 登录游戏 耐心等待会，电脑性能不行的话
time.sleep(10)
do_login_game(account_list)
# 去百战千军报名
#go_to_npc_bai_zhan_qian_jun(my_game_windows)